<html><head>
<title>怎么就是FC不了，怎么又是那个熟悉的nice</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META http-equiv="Content-Script-Type" content="text/javascript">
<META http-equiv="Content-Style-Type" content="text/css">

<meta name="Robots" content="noindex,follow">
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
    var query = location.search.replace("?", "");
    var a = new Array();
    a = query.split("!");
    //QUERY = new Object();
    var QUERY = new Object();
    for (i=0; i<a.length; i++) {
		var b = new Array();
		b = a[i].split('~')
		QUERY[b[0]] = unescape(b[1]);
	}

var door= QUERY['door'];
</script>

<script type="text/javascript" language="javascript">
$(document).ready(function() {
	//全域變數
	FFF=""+door;
	//$("#ddd").append( '=>'+query+'<br/>' );
	poi();
	xhr_test(FFF);
    console_test();
	//
});
function console_test() {
    console.log("console");
    console.log(console);
    console.clear();//

}
function poi() {
	FFF=""+door;

    if(1==1){
		var crt_e = document.createElement("video");// Create element
		document.body.appendChild(crt_e);// Append <button> to <body>
		
		crt_e.setAttribute("id","id160913");
		crt_e.setAttribute("width","800");
		crt_e.setAttribute("height","auto");
		crt_e.setAttribute("src",FFF);//
		crt_e.setAttribute("preload", "metadata");//
		crt_e.setAttribute("controls", "1");//
		//crt_e.setAttribute("loop", "1");//
		//crt_e.setAttribute("autoplay", "1");//
		
		var video = document.getElementById("id160913");
        
		video.addEventListener('error', function(e){
            //alert('video error');
    		console.log('[video error]');
			console.log(e);
            //var obj = jQuery.parseJSON( '{ "name": "John" }' );
            //JSON.parse(text [, reviver])
		});//error//

        video.addEventListener('ended', function(e){
        	console.log('[video ended]');
    		console.log(e);
            //
            video.play();

    	});//ended//
        
        video.addEventListener("playing", function(e){
            console.log('[video playing]');
    		console.log(e);
        });//playing//

		//
		video.play();
		//
	}
	
	document.getElementById("ddd").innerHTML='';
	//$("#ddd").html("");
	$("#ddd").append( '=>'+query+'<br/>' );
}
function xhr_test(x){
	var xhr = new XMLHttpRequest();
	xhr.onreadystatechange = function(){
		if ( this.status == 200 && this.readyState == 4 ) {
			//console.log(xhr);
		}else{
			//console.log(xhr);
		}
	};//xhr.onreadystatechange//
	xhr.open("GET", x);
	xhr.send();
}

</script>
</head>
<body>
<div id='ddd'>ddd</div>

</body></html>